package com.dlsp.hotel.service.admin.impl;

import com.dlsp.hotel.bean.admin.User;
import com.dlsp.hotel.mapper.admin.UserMapper;
import com.dlsp.hotel.service.admin.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author:fanxh
 * @date: 2022/1/2/9:37
 */
@Service
public class UserServiceimpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByUsername(String username) {
        return null;
    }

    @Override
    public User login(String username, String password) {
        User user = userMapper.findByUsernameAndPwd(username, password);
        return user;
    }

    @Override
    public int add(User user) {
        return 0;
    }

    @Override
    public int edit(User user) {
        return 0;
    }

    @Override
    public int editPassword(User user) {
        return 0;
    }

    @Override
    public int delete(String ids) {
        return 0;
    }

    @Override
    public List<User> findList(Map<String, Object> queryMap) {
        return null;
    }

    @Override
    public int getTotal(Map<String, Object> queryMap) {
        return 0;
    }
}
